<?php

class Skjb_Search_Xapian_ValueRangeProcessor_Number extends Skjb_Search_Xapian_ValueRangeProcessor
{
    public $_cPtr=null;

    function __construct($valno_,$str_=null,$prefix_=true) {
        switch (func_num_args()) {
        case 1: $r=new_NumberValueRangeProcessor($valno_); break;
        default: $r=new_NumberValueRangeProcessor($valno_,$str_,$prefix_);
        }
        $this->_cPtr=$r;
    }

    function apply($begin,$end) {
        return NumberValueRangeProcessor_apply($this->_cPtr,$begin,$end);
    }
}